<template>
    <div class=home>
        <div class='ation'>
            <div class='ation_text1'>
                <img src="./images/6f1eaa293f0c517c1592000f2e2d233.jpg" alt="" style="width: 35px; float: left;">
                <span style="float: left; margin-top: 20px;">华亿达小游戏后台</span>
                <span></span>
                <div style="float: right;">
                    <el-dropdown><span class="el-dropdown-link">
      <img src="./images/6f1eaa293f0c517c1592000f2e2d233.jpg" alt=""
           style="width: 35px; float: right; border-radius: 50%; margin-right: 20px;"
      >
      <el-icon class="el-icon--right">
          <arrow-down/>
      </el-icon>
                    </span>
                        <template #dropdown>
                            <el-dropdown-menu>
                                <el-dropdown-item @click="Logout">退出登入</el-dropdown-item>
                            </el-dropdown-menu>
                        </template>
                    </el-dropdown>
                </div>
            </div>
        </div>
        <div class='bott'>
            <div class="Right_tatb">
                <Rightsidebar/>
            </div>
            <div class='home_Bread'>
                <taptaba/>
                <div>
                    <router-view></router-view>
                </div>
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup>
import 'element-plus/dist/index.css';
import Rightsidebar from './assembly/Rightsidebar.vue'
import taptaba from './assembly/toptaba.vue'
import {useRouter} from 'vue-router';

let router = useRouter()
let Logout = () => {
    router.replace('/login')
}
</script>


<style scoped>
.custom-container {

    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    max-width: 80%;
    margin: auto;


}

.Right_tatb {

    width: 200px;
    background-color: white;
    height: 92.5vh;
    display: inline-block;
    float: left;

}

.ation {
    background-color: #545c64;
    height: 50px;
    white: 100%;
    margin-bottom: 1px;
    color: white;
    line-height: 40px

}

.ation_text1 {
    margin-left: 10px;
    line-height: 10px;
}

.ation_text1 img {
    margin-top: 8px;
    margin-right: 10px;
}

.home {

}

.home_Bread {
    margin-left: 10px;
    margin-top: 10px;
    width: 87%;
    background-color: white;


}

.bott {
    width: 100%;
    height: 100%;
    display: flex;


}
</style>
